﻿using System;
using ServerApi.Controllers;
using TuyennvLibrary.ServerApi.Controllers;

namespace ServerApi
{
    public class BasePage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Config.Request = Request;
            Config.Ip_Client = (Request.ServerVariables["HTTP_X_FORWARDED_FOR"] ?? Request.ServerVariables["REMOTE_ADDR"]).Split(',')[0].Trim();

        }
    }
}